<?php	
							 					
namespace co2_OS\apps\yaml\dev\v0_0_0;

use co2_OS as kernel;
use co2\dev\v0_0_0 as api;

require_once kernel\sysvar::get('lib').'/spyc/0.5/spyc.php';

class dump

{
  protected
    $string
    ;
    
  public function __construct(array $yaml)
  
  {
    $this->string=\Spyc::YAMLDump(api\Juggling::objectToArray($yaml));
  }
  
  public function __invoke()
  
  {
    return $this->string;
  }
  
  public function __toString()
  
  {
    return $this->string;
  }
}
